Detecting Semantic Equivalence in UML Class Diagrams
نویسندگان
چکیده
When developing a system in Model-driven Engineering (MDE), developers change the same diagram in parallel. These changes generate different versions that may conflict. Conflicts can be syntactic, related to the structure of the diagram, or semantic, related to the meaning of the diagram. The detection of semantic conflicts in diagrams should take into consideration both the syntax and semantics. This is necessary because languages like UML provide different representations that produce the same meaning. Therefore, syntactically different diagrams may be semantically equivalent. Thus, conflict detection methods must understand the semantics of diagrams to reduce the occurrence of false positive and false negative conflicts. This paper presents a semantic conflict detection method for UML class diagrams. It verifies if two versions of a class diagram are semantically equivalent, if one version semantically contains the other, or if they are semantically conflicting. Keywords-component; model version control; semantic equivalence; semantic conflict detection; UML class diagram.
منابع مشابه
Equivalence Rules for UML Class Diagrams
UML is a complex language with many modeling features. Especially the modeling of static structures with class diagrams is supported by a rich set of description primitives. We show how to transfrom UML class diagrams involving cardinality constraints, qualifiers, association classes, aggregations, compositions, and generalizations into equivalent UML class diagrams employing only n-ary associa...
متن کاملDefining the Semantics of UML Class and Sequence Diagrams for Ensuring the Consistency and Executability of OO Software Specification
In order to ensure the correctness of OO Software Specification when using UML, the semantics of UML diagrams must be rigorously defined. To be rigorous, one typically resorts to formal languages for specifying UML diagrams. However, formal languages are usually heavy to learn/use and formally defined semantics of diagrams usually does not show how it is connected to the semantics of programs. ...
متن کاملSystem Model Semantics of Class Diagrams
Defining semantics for UML is a difficult task. Disagreements in the meaning of UML constructs as well as the size of UML are major obstacles. In this report, we describe our approach to define the semantics for UML. Semantics is defined denotationally as a mapping into our semantics domain called the system model [4, 5, 6]. We demonstrate our approach by defining the semantics for a comprehens...
متن کاملMapping UML Models to Colored Petri Nets Models based on Edged Graph Grammar
This paper presents an approach for transforming UML class diagrams and extended sequence diagrams into Colored Petri Nets. In the field of software model, UML has become a widely used software modeling language. However, as a semi-formal language, UML lacks a precise formal semantic base for its notation. In this paper, Colored Petri Nets are taken as the formal language for UML models' analys...
متن کاملMapping UML Class Diagrams to Object-Oriented Logic Programs for Formal Model-Driven Development
MODELOG aims at automatically mapping UML class, object, statechart, activity and collaboration diagrams adorned with Object-Constraint Language expressions to non-monotonic, dynamic, object-oriented logic programs in Concurrent Transaction Frame Logic (CTFL). Coupled with the Flora2 inference engine for CTFL, MODELOG will fill five gaps in the current UML-based infrastructure for the Common Wa...
متن کامل